#ifndef _TELLTALE_MODEL_LOGIC_AIRBAGMODEL_H_
#define _TELLTALE_MODEL_LOGIC_AIRBAGMODEL_H_

#include "Common/HmiAdapterBase.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef enum 
{
    State_Off = 0x00,        //00
    State_Selfcheck  = 0x01, //01
    State_On = 0x02
} AirbagState;

typedef enum {
    EV_Off = 0x00,
    EV_IgOn = 0x01,
    EV_IgOff = 0x02,
    EV_On = 0x03,
    EV_Unknown = 0x03
} AirbagEvent;

typedef enum {
    State_IgOff = 0x00,
    State_IgOn = 0x01
} AirbagIgnitionState;

typedef struct AirbagWorkingData
{
    uint32_t selfcheckCount;
    AirbagEvent event;
    AirbagState currentState;
    AirbagIgnitionState ignitionState;
    bool hasWidget;
} AirbagWorkingData;

static AirbagWorkingData AirbagWorkingDataInstance;

typedef struct AirbagModel
{
    ImeterModel model_;
} AirbagModel;

extern AirbagModel g_AirbagModelInstance;

#ifdef __cplusplus
}
#endif

#endif